package cn.source.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.source.system.mapper.SchoolPlanMapper;
import cn.source.system.mapper.SchoolPlanZkMapper;
import cn.source.system.domain.SchoolPlan;
import cn.source.system.domain.SchoolPlanZk;
import cn.source.system.service.ISchoolPlanService;
import cn.source.system.service.ISchoolPlanZkService;

/**
 * 学校招生计划Service业务层处理
 * 
 * @author sourcebyte.vip
 * @date 2024-03-15
 */
@Service
public class SchoolPlanZkServiceImpl implements ISchoolPlanZkService 
{
    @Autowired
    private SchoolPlanZkMapper schoolPlanMapper;

    /**
     * 查询学校招生计划
     * 
     * @param id 学校招生计划主键
     * @return 学校招生计划
     */
    @Override
    public SchoolPlanZk selectSchoolPlanById(Long id)
    {
        return schoolPlanMapper.selectSchoolPlanById(id);
    }

    /**
     * 查询学校招生计划列表
     * 
     * @param schoolPlan 学校招生计划
     * @return 学校招生计划
     */
    @Override
    public List<SchoolPlanZk> selectSchoolPlanList(SchoolPlanZk schoolPlan)
    {
        return schoolPlanMapper.selectSchoolPlanList(schoolPlan);
    }
    
    @Override
    public List<SchoolPlanZk> selectSchoolZyz2023PlanList(SchoolPlanZk schoolPlan)
    {
        return schoolPlanMapper.selectSchoolZyz2023PlanList(schoolPlan);
    }
    
    @Override
    public List<SchoolPlanZk> selectSchoolZyPlan2023ByZyzStrList(SchoolPlanZk schoolPlan)
    {
        return schoolPlanMapper.selectSchoolZyPlan2023ByZyzStrList(schoolPlan);
    }
    
    
    @Override
    public List<SchoolPlanZk> selectSchoolZyPlan2023List(SchoolPlanZk schoolPlan)
    {
        return schoolPlanMapper.selectSchoolZyPlan2023List(schoolPlan);
    }
    
    
    @Override
    public List<SchoolPlanZk> selectSchoolZyzPlanList(SchoolPlanZk schoolPlan)
    {
        return schoolPlanMapper.selectSchoolZyzPlanList(schoolPlan);
    }
    
    @Override
    public List<SchoolPlanZk> selectSchoolPlanCheckList(SchoolPlanZk schoolPlan)
    {
        return schoolPlanMapper.selectSchoolPlanCheckList(schoolPlan);
    }
    
    @Override
    public List<SchoolPlanZk> selectSchoolZyzList(SchoolPlanZk schoolPlan)
    {
        return schoolPlanMapper.selectSchoolZyzList(schoolPlan);
    }

    /**
     * 新增学校招生计划
     * 
     * @param schoolPlan 学校招生计划
     * @return 结果
     */
    @Override
    public int insertSchoolPlan(SchoolPlanZk schoolPlan)
    {
        return schoolPlanMapper.insertSchoolPlan(schoolPlan);
    }

    /**
     * 修改学校招生计划
     * 
     * @param schoolPlan 学校招生计划
     * @return 结果
     */
    @Override
    public int updateSchoolPlan(SchoolPlanZk schoolPlan)
    {
        return schoolPlanMapper.updateSchoolPlan(schoolPlan);
    }

    /**
     * 批量删除学校招生计划
     * 
     * @param ids 需要删除的学校招生计划主键
     * @return 结果
     */
    @Override
    public int deleteSchoolPlanByIds(Long[] ids)
    {
        return schoolPlanMapper.deleteSchoolPlanByIds(ids);
    }

    /**
     * 删除学校招生计划信息
     * 
     * @param id 学校招生计划主键
     * @return 结果
     */
    @Override
    public int deleteSchoolPlanById(Long id)
    {
        return schoolPlanMapper.deleteSchoolPlanById(id);
    }
}
